/**
  ******************************************************************************
  * @file   
  * @brief  
  ******************************************************************************
  * @note

 */

#ifndef __FDCAN_H
#define __FDCAN_H

/* Includes ------------------------------------------------------------------*/
#include "System_config.h"
/* Definitions ---------------------------------------------------------*/

/* Private variables ---------------------------------------------------------*/

/* Global variables ---------------------------------------------------------*/
extern FDCAN_FilterTypeDef sFilterConfig;
extern FDCAN_TxHeaderTypeDef TxHeader;
extern FDCAN_RxHeaderTypeDef RxHeader;
/*Functions------------------------------------------------------------------*/
uint8_t FDCAN1_Send_Msg(uint8_t* msg,uint32_t len,uint32_t CAN_ID);
void canfd_filter(FDCAN_HandleTypeDef* fdcanhandle);
uint8_t FDCAN1_Receive_Msg(uint8_t *buf);
void init_FDCAN_TX_Header(FDCAN_TxHeaderTypeDef *FDCAN_Tx,uint32_t len,uint8_t ID);

/* Exported function declarations --------------------------------------------*/

#endif
